﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuSanPhamTieuBieu.ascx.cs" Inherits="UserControl_MenuSanPhamTieuBieu" %>
<style type="text/css">
    .style13
    {
        text-align: center;
    }
</style>

<asp:DataList ID="DataList1" runat="server" DataKeyField="MaSanPham" 
    DataSourceID="SqlDataSource1">
    <ItemTemplate>
        <div class="style13">
            <asp:ImageButton ID="ImageButton1" runat="server" Height="180px" 
                ImageUrl='<%# Eval("HinhAnh") %>' 
                PostBackUrl='<%# "~/SanPham.aspx?ID="+Eval("MaSanPham") %>' 
                Width="180px" />
            <br />
            <asp:Label ID="Label2" runat="server" 
                style="font-weight: 700; color: #999999; font-size: 14px" 
                Text='<%# Eval("MaSanPham") %>' />
            <br />
            Giá :&nbsp;<asp:Label ID="Label15" runat="server" style="color: #FF0000" 
                Text='<%# Eval("GiaBan"," {0:N0} ") %>'></asp:Label>
            &nbsp;VNĐ<br /> <br />
        </div>
    </ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
    
    
    
    SelectCommand="SELECT MaSanPham, (SELECT TOP (1) URL FROM HinhAnh WHERE (MaSanPham = SanPham.MaSanPham)) AS HinhAnh, GiaBan, NgayCapNhat, LoaiID, Xoa, GioiThieu, ChucNangID, NhanHieuID FROM SanPham WHERE (Hot = 1) ORDER BY NgayCapNhat DESC">
</asp:SqlDataSource>

